package javalession;

import com.sun.tools.javac.parser.Scanner;

public class lession6 {
	int score[]= new int[6];
	int sum = 0;
	int max = 0;
	int min = 100; 
	for (int i = 0; i < score.length; i++) {
		System.out.println("请"+(i+1)+"号导师为选手评分:");
		score[i]=new Scanner(System.in).nextInt();
		sum+=score[i];
		if (max<score[i]) {
			max=score[i];
		}
		if (min>score[i]) {
			min=score[i];
		}
	}
	System.out.println("选手最终得分为:"+(sum-max-min)/4);

}
}
